package com.greet.comparable;

import com.greet.vo.OrderDetailTopItem;

import java.util.Comparator;

public class OrderDetailTopItemCmp  implements Comparator<OrderDetailTopItem> {

    @Override
    public int compare(OrderDetailTopItem o1, OrderDetailTopItem o2) {
        return o2.getSalesVolume() - o1.getSalesVolume();
    }
}
